.class public Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Lcom/xingbook/ecloud/e/s;
.implements Lcom/xingbook/service/download/f;


# instance fields
.field public a:Lcom/xingbook/ecloud/a/a;

.field private b:Landroid/widget/RelativeLayout;

.field private c:Lcom/xingbook/ui/t;

.field private d:Landroid/widget/GridView;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/TextView;

.field private g:Lcom/xingbook/ui/ae;

.field private h:Lcom/xingbook/ecloud/b/d;

.field private i:Z

.field private l:Lcom/xingbook/service/download/b;

.field private m:Ljava/lang/String;

.field private n:Ljava/lang/String;

.field private o:Z

.field private p:Lcom/xingbook/ecloud/e/q;

.field private q:Lcom/xingbook/ecloud/activity/f;

.field private r:Lcom/xingbook/ecloud/c/c;

.field private s:Landroid/app/ProgressDialog;


# direct methods
.method public constructor <init>()V
    .locals 3

    const/4 v2, 0x0

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    iput-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a:Lcom/xingbook/ecloud/a/a;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->i:Z

    new-instance v0, Lcom/xingbook/ecloud/activity/f;

    invoke-direct {v0, p0}, Lcom/xingbook/ecloud/activity/f;-><init>(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)V

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->q:Lcom/xingbook/ecloud/activity/f;

    new-instance v0, Lcom/xingbook/ecloud/c/c;

    new-instance v1, Lcom/xingbook/ecloud/activity/a;

    invoke-direct {v1, p0}, Lcom/xingbook/ecloud/activity/a;-><init>(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)V

    invoke-direct {v0, v1}, Lcom/xingbook/ecloud/c/c;-><init>(Lcom/xingbook/ecloud/c/d;)V

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->r:Lcom/xingbook/ecloud/c/c;

    iput-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Lcom/xingbook/ui/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->g:Lcom/xingbook/ui/ae;

    return-object v0
.end method

.method private a(I)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a(Z)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->h:Lcom/xingbook/ecloud/b/d;

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->q:Lcom/xingbook/ecloud/activity/f;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/ecloud/activity/f;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/ecloud/activity/c;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/ecloud/activity/c;-><init>(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a(I)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;Lcom/xingbook/ecloud/b/d;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->h:Lcom/xingbook/ecloud/b/d;

    return-void
.end method

.method static synthetic b(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Landroid/widget/GridView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Lcom/xingbook/ui/t;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->c:Lcom/xingbook/ui/t;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Lcom/xingbook/ecloud/b/d;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->h:Lcom/xingbook/ecloud/b/d;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->o:Z

    return v0
.end method

.method static synthetic g(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic h(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->m:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic i(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->n:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic j(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)Lcom/xingbook/ecloud/activity/f;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->q:Lcom/xingbook/ecloud/activity/f;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/xingbook/ecloud/b/b;)V
    .locals 3

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/b;->g()Lcom/xingbook/ecloud/b/a;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    invoke-virtual {v0}, Lcom/xingbook/ecloud/b/a;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/xingbook/service/download/b;->d(Ljava/lang/String;)Lcom/xingbook/service/download/k;

    move-result-object v1

    if-nez v1, :cond_0

    new-instance v1, Lcom/xingbook/ecloud/c/a;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->r:Lcom/xingbook/ecloud/c/c;

    invoke-direct {v1, v0, v2}, Lcom/xingbook/ecloud/c/a;-><init>(Lcom/xingbook/ecloud/b/a;Lcom/xingbook/ecloud/c/c;)V

    invoke-virtual {v1}, Lcom/xingbook/ecloud/c/a;->a()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    invoke-virtual {v1}, Lcom/xingbook/service/download/k;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public a(Lcom/xingbook/ecloud/b/b;Lcom/xingbook/ecloud/e/a;)V
    .locals 4

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/b;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "\u6807\u8bb0\u4e3a\u672a\u5b8c\u6210"

    :goto_0
    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->p:Lcom/xingbook/ecloud/e/q;

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/b;->g()Lcom/xingbook/ecloud/b/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/ecloud/b/a;->u()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/xingbook/ecloud/activity/d;

    invoke-direct {v3, p0, p1, p2}, Lcom/xingbook/ecloud/activity/d;-><init>(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;Lcom/xingbook/ecloud/b/b;Lcom/xingbook/ecloud/e/a;)V

    invoke-virtual {v1, v2, v0, v3}, Lcom/xingbook/ecloud/e/q;->a(Ljava/lang/String;Ljava/lang/String;Lcom/xingbook/ecloud/e/r;)V

    return-void

    :cond_0
    const-string v0, "\u6807\u8bb0\u4e3a\u5b8c\u6210"

    goto :goto_0
.end method

.method public a(Lcom/xingbook/ecloud/b/b;Z)V
    .locals 4

    invoke-virtual {p1}, Lcom/xingbook/ecloud/b/b;->g()Lcom/xingbook/ecloud/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ecloud/b/a;->t()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/park/activity/OpenBookAct;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "com.xingbook.park.IS_COURSE"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string v2, "com.xingbook.park.EXTRA_ECLOUDBOOKID"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    if-nez p2, :cond_0

    const-string v0, "com.xingbook.park.EXTRA_FORCE_HIDELEVEL"

    sget v2, Lcom/xingbook/c/e;->f:I

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    :cond_0
    invoke-virtual {p0, v1}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    invoke-virtual {v0, p1}, Lcom/xingbook/service/download/b;->d(Ljava/lang/String;)Lcom/xingbook/service/download/k;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    invoke-virtual {v0, p1}, Lcom/xingbook/service/download/b;->c(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/xingbook/service/download/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 0

    return-void
.end method

.method public declared-synchronized a(Z)V
    .locals 1

    monitor-enter p0

    :try_start_0
    iput-boolean p1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->i:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public a(ZLjava/lang/String;Ljava/lang/String;)V
    .locals 3

    new-instance v1, Landroid/content/Intent;

    const-class v0, Lcom/xingbook/baike/activity/BaikeDetailActivity;

    invoke-direct {v1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v0, "com.xingbook.baike.acticity.BaikeDetailActivity.INTENT_BAIKEID"

    invoke-virtual {v1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "com.xingbook.baike.acticity.BaikeDetailActivity.INTENT_BAIKETYPE"

    if-eqz p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v0, "com.xingbook.baike.acticity.BaikeDetailActivity.INTENT_COURSEID"

    invoke-virtual {v1, v0, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->startActivity(Landroid/content/Intent;)V

    return-void

    :cond_0
    const/4 v0, 0x2

    goto :goto_0
.end method

.method public declared-synchronized a()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->i:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public b()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/group/activity/GroupDetailActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.group.activity.INTENT_GROUPID"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public c(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.group.activity.GroupTopicDetail.INTENT_TOPICID"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public d(Ljava/lang/String;)V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCanceledOnTouchOutside(Z)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0, p1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->s:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    :cond_1
    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u6559\u80b2\u4e91-\u8bfe\u7a0b\u5185\u5bb9\u5217\u8868"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 10

    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, -0x2

    const/4 v6, 0x0

    const/4 v5, -0x1

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_2

    const-string v1, "com.xingbook.ecloud.activity.ECloudCourseDetailAct.INTENT_COURSEID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "com.xingbook.ecloud.activity.ECloudCourseDetailAct.INTENT_COURSEID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->m:Ljava/lang/String;

    :cond_0
    const-string v1, "com.xingbook.ecloud.activity.ECloudCourseDetailAct.INTENT_ISTEACHER"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, "com.xingbook.ecloud.activity.ECloudCourseDetailAct.INTENT_ISTEACHER"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v1

    iput-boolean v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->o:Z

    :cond_1
    const-string v1, "com.xingbook.ecloud.activity.ECloudCourseDetailAct.INTENT_GRADEID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string v1, "com.xingbook.ecloud.activity.ECloudCourseDetailAct.INTENT_GRADEID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->n:Ljava/lang/String;

    :cond_2
    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->m:Ljava/lang/String;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->n:Ljava/lang/String;

    if-nez v0, :cond_4

    :cond_3
    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->finish()V

    :cond_4
    invoke-static {p0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/n;->j()Lcom/xingbook/service/download/b;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Lcom/xingbook/ecloud/a/a;

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v3

    invoke-direct {v1, v2, p0, v3}, Lcom/xingbook/ecloud/a/a;-><init>(Landroid/content/Context;Lcom/xingbook/ecloud/e/s;F)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a:Lcom/xingbook/ecloud/a/a;

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v5}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v1}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->setContentView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v1

    new-instance v2, Lcom/xingbook/ui/t;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    iput-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->c:Lcom/xingbook/ui/t;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->c:Lcom/xingbook/ui/t;

    const-string v3, "\u6211\u7684\u661f\u5b9d\u8bfe"

    iput-object v3, v2, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->c:Lcom/xingbook/ui/t;

    const v3, -0x33ffec

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/t;->setBackgroundColor(I)V

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->c:Lcom/xingbook/ui/t;

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    sget v4, Lcom/xingbook/ui/t;->b:I

    invoke-direct {v3, v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/t;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->c:Lcom/xingbook/ui/t;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v1

    new-instance v2, Landroid/widget/GridView;

    invoke-direct {v2, v0}, Landroid/widget/GridView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    const/high16 v3, 0x4100

    mul-float/2addr v3, v1

    float-to-int v3, v3

    invoke-virtual {v2, v6, v3, v6, v6}, Landroid/widget/GridView;->setPadding(IIII)V

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    const v3, 0xffffff

    invoke-virtual {v2, v3}, Landroid/widget/GridView;->setCacheColorHint(I)V

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    invoke-virtual {v2, v9}, Landroid/widget/GridView;->setNumColumns(I)V

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    const/16 v3, 0x11

    invoke-virtual {v2, v3}, Landroid/widget/GridView;->setGravity(I)V

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    const/high16 v3, 0x4180

    mul-float/2addr v1, v3

    float-to-int v1, v1

    invoke-virtual {v2, v1}, Landroid/widget/GridView;->setVerticalSpacing(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    invoke-virtual {v1, v9}, Landroid/widget/GridView;->setStretchMode(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sget v2, Lcom/xingbook/ui/t;->b:I

    iput v2, v1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    invoke-virtual {v2, v1}, Landroid/widget/GridView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/LinearLayout;

    invoke-direct {v1, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v8}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    const/16 v2, 0x11

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    new-instance v2, Lcom/xingbook/ecloud/activity/b;

    invoke-direct {v2, p0}, Lcom/xingbook/ecloud/activity/b;-><init>(Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sget v2, Lcom/xingbook/ui/t;->b:I

    iput v2, v1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    const v2, 0x7f020241

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b000f

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    const/high16 v2, 0x41f0

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v3

    mul-float/2addr v2, v3

    invoke-virtual {v1, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    const v2, -0x666667

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    invoke-static {v8}, Landroid/graphics/Typeface;->defaultFromStyle(I)Landroid/graphics/Typeface;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v7, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->e:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Lcom/xingbook/ecloud/e/q;

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    invoke-direct {v1, v0, v2}, Lcom/xingbook/ecloud/e/q;-><init>(Landroid/content/Context;F)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->p:Lcom/xingbook/ecloud/e/q;

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sget v1, Lcom/xingbook/ui/t;->b:I

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->p:Lcom/xingbook/ecloud/e/q;

    invoke-virtual {v1, v0}, Lcom/xingbook/ecloud/e/q;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->p:Lcom/xingbook/ecloud/e/q;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->g:Lcom/xingbook/ui/ae;

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a(I)V

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b()V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a:Lcom/xingbook/ecloud/a/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->b(Lcom/xingbook/service/download/m;)V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x4

    if-ne p1, v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->p:Lcom/xingbook/ecloud/e/q;

    invoke-virtual {v1}, Lcom/xingbook/ecloud/e/q;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->finish()V

    goto :goto_0

    :cond_1
    invoke-super {p0, p1, p2}, Lcom/xingbook/park/activity/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->b:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->g:Lcom/xingbook/ui/ae;

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->l:Lcom/xingbook/service/download/b;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a:Lcom/xingbook/ecloud/a/a;

    invoke-virtual {v0, v1}, Lcom/xingbook/service/download/b;->a(Lcom/xingbook/service/download/m;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->a:Lcom/xingbook/ecloud/a/a;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method

.method protected onStop()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudCourseDetailAct;->d:Landroid/widget/GridView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onStop()V

    return-void
.end method
